package com.novax.ex.activity.provider.service;

import com.novax.ex.activity.infrastructure.mapper.OperationContentMapper;
import com.novax.ex.common.base.BaseMapper;
import com.novax.ex.common.base.BaseService;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;

/**
 * @Description 活动落地页文案
 * @Author ChenXi
 * @Date 2023/04/18/10:08
 */

@Service
public class OperationContentService extends BaseService {

    @Resource
    private OperationContentMapper operationContentMapper;

    @Override
    protected BaseMapper getBaseMapper() {
        return operationContentMapper;
    }

    /**
     * @Description: 判断此活动id和语言是否已配置文案
     * @Author: ChenXi
     * @Date:  2023/4/19 11:22
     * @param operationId
     * @param language
     * @return: void
     **/
    public Long queryOperationIdAndLanguage(Long operationId, String language) {
        return operationContentMapper.queryOperationIdAndLanguage(operationId, language);
    }

}
